﻿using System;

namespace ELW.Library.Math.Calculators {
    /// <summary>
    /// Common interface shoud be implemented in variuos operations calculators.
    /// </summary>
    public interface IOperationCalculator {
        /// <summary>
        /// Returns a result of operation called.
        /// </summary>
        double Calculate(params double[] parameters);
    }
    /// <summary>
    /// Static class for random numbers
    /// </summary>
    public static class RandomStatic
    {
        static Random rand = new Random(DateTime.Now.Second);
        public static double NextDouble()
        {
            return rand.NextDouble();
        }
    }
}